package com.yunban.project.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunban.project.message.domain.SmsRecord;

/**
 * @author: lijiajun
 * @date: 2025-03-07
 * @version: 1.0
 */
public interface SmsService extends IService<SmsRecord> {
    /**
     * 发送短信
     *
     * @param code    发送参数
     * @param phoneNo 手机号
     * @return 发送结果
     */
    Boolean send(String code, String phoneNo);

    SmsRecord getLastSendRecord(String phoneNo);

    void saveSmsLog(String code, String phoneNo, String message);

    void checkCode(String phoneNo, String code);

    void checkRepeatSend(String phoneNo);
}
